package org.dromara.work.mapper.temp;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.dromara.common.mybatis.annotation.DataColumn;
import org.dromara.common.mybatis.annotation.DataPermission;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.work.domain.bo.DmBaseQueryBo;
import org.dromara.work.domain.temp.TempDmBase;
import org.dromara.work.domain.vo.DmBaseBriefVo;
import org.dromara.work.domain.vo.DmBaseVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TempDmBaseMapper extends BaseMapperPlus< TempDmBase, DmBaseVo> {

    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    Page<DmBaseBriefVo> selectDmBasePage(@Param("page") Page<TempDmBase> page, @Param("request") DmBaseQueryBo bo);

    @DataPermission({
        @DataColumn(key = "deptName", value = "dept_id"),
        @DataColumn(key = "userName", value = "user_id")
    })
    Page<DmBaseVo> selectDlBasePage(@Param("page") Page<TempDmBase> page, @Param("request") DmBaseQueryBo bo);


}
